﻿using System;
using System.Collections.Generic;
using IterationLife.Extensions.Dtos;
using IterationLife.Extensions.Enums;
using IterationLife.Mobile.AppServices.Dtos.Common;
using Util.Iocs;

namespace IterationLife.Mobile.AppServices.Services.Common
{
    /// <summary>
    /// 内容资源服务
    /// </summary>
    public interface IContentResourceService : IDependency
    {
        /// <summary>
        /// 热点内容资源列表
        /// </summary>
        /// <param name="size">条数</param>
        /// <param name="codes">分类编码集合</param>
        /// <param name="tags">标签集合</param>
        List<ContentResourceListOutPut> HotList(int size, string codes = null, string tags = null);
        /// <summary>
        /// 内容资源范围列表
        /// </summary>
        /// <param name="size">条数</param>
        /// <param name="codes">分类编码集合</param>
        /// <param name="tags">标签集合</param>
        /// <param name="id">内容资源编号</param>
        /// <param name="queryType">查询类型</param>
        RangeData<ContentResourceListOutPut> RangeList(int size, string codes = null, string tags = null, Guid? id = null, RangeQueryType queryType = RangeQueryType.After);
        /// <summary>
        /// 内容资源详情
        /// </summary>
        /// <param name="id">内容资源编号</param>
        ContentResourceDetailOutPut Detail(Guid id);
    }
}
